﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="orderdetails.aspx.cs" Inherits="Pages_Admin_orderdetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:DetailsView ID="dtvOrders" runat="server" AutoGenerateRows="False" DataSourceID="odsOrders" DataKeyNames="OrderID">
        <Fields>
            <asp:TemplateField>
                <ItemTemplate>
                 <fieldset style="width:730px; padding:10px">
    <legend><%# Pan.Sys_Config.OrderPayWay(Eval("PayWay").ToString()) %> <label style="font-size:14pt; color:Red"><%# Eval("OrderNum") %></label><label style="font-weight:bold; font-size:12pt"> <%# (Eval("Status").ToString()=="7")?"已经支付":"未支付" %></label> 
    <a href="javascript:history.go(-1)" id="aback">返回</a></legend>
    <table cellSpacing="1" cellPadding="1" width="100%" border="1">
	<td height="25" width="30%" align="right">产品名称：</td>
	<td height="25" width="*" align="left" >
		<asp:Label id="lblProductName" runat="server"><%# Eval("ProductName") %> </asp:Label>
	</td></tr>
	
	<tr>
	<td height="25" width="30%" align="right">
		单价：
		 </asp:Label>
	</td>

	<td height="25" width="*"  align="left"> <asp:Label id="lblPrice" runat="server"><%# Eval("Price", "{0:￥.0}")%></asp:Label>
		 【运费：<asp:Label id="lblFreight" runat="server"><%# Eval("Freight")%></asp:Label>】
	
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		数量：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblCount" runat="server"><%# Eval("Count")%></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		总金额	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblTotalAmount" runat="server"><%# Eval("TotalAmount", "{0:￥.0}")%></asp:Label>
	</td></tr>
	
	<tr>
	<td height="25" width="30%" align="right">
    虚拟币支付	：</td>	<td height="25" width="*" align="left">
		<asp:Label id="lblToken" runat="server"><%# Eval("Token")%></asp:Label>
	</td></tr>
		
	<tr>
	<td height="25" width="30%" align="right">
		应支付金额	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblPayMoney" runat="server"><%# Eval("PayMoney","{0:￥.0}")%></asp:Label>
	</td></tr>
	<tr>
	<tr>
	<td height="25" width="30%" align="right">
		订单日期
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblCreateOn" runat="server"><%# Eval("CreateOn")%></asp:Label>
	</td></tr>
	<td height="25" width="30%" align="right">
		支付时间
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblPayDate" runat="server"><%# Eval("PayDate")%></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		购买用户帐号:
	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblBuyerEmail" runat="server"><%# Eval("BuyerEmail")%></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		外部交易号	：</td>
	<td height="25" width="*" align="left">
		<asp:Label id="lblTradeNo" runat="server"><%# Eval("TradeNo")%></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
        购买客户:</td>	<td height="25" width="*" align="left">
		<asp:Label id="lblCheckName" runat="server"><%# Eval("CheckName")%></asp:Label>
	</td></tr>
	<tr>
	<td height="25" width="30%" align="right">
		电话：</td>
	<td height="25" width="*" align="left"><asp:Label id="lblTel" runat="server"><%# Eval("Tel")%></asp:Label>
		【收货地址:<asp:Label id="lblCheckAddress" runat="server"><%# Eval("CheckAddress")%></asp:Label>】
		
	</td></tr>
</table>
   </fieldset>
                </ItemTemplate>
            </asp:TemplateField>
        </Fields>
    </asp:DetailsView>

    </div>
   <asp:ObjectDataSource ID="odsOrders" runat="server" 
        DataObjectTypeName="Tuan.Model.OrderInfo" SelectMethod="GetModel" 
        TypeName="Tuan.BLL.OrderInfo" >
        <SelectParameters>
            <asp:QueryStringParameter Name="OrderID" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </form>
</body>
</html>
